<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>寂静领域 - 缄默中等待的个人博客</title><meta name="author" content="缄默中等待"><meta name="copyright" content="缄默中等待"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="寂静领域">
<meta property="og:url" content="https://jmzdd-jjly.website/index.html">
<meta property="og:site_name" content="寂静领域">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://jmzdd-jjly.website/img/hand.jpg">
<meta property="article:author" content="缄默中等待">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://jmzdd-jjly.website/img/hand.jpg"><link rel="shortcut icon" href="/img/hand.jpg"><link rel="canonical" href="https://jmzdd-jjly.website/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script>(adsbygoogle = window.adsbygoogle || []).push({
  google_ad_client: 'ca-pub-8513124902357647',
  enable_page_level_ads: 'true'
});</script><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: true,
  islazyload: true,
  isAnchor: true
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '寂静领域',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2022-04-21 22:37:19'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', 'ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="/img/hand.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">21</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-hourglass-half"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/albums/"><i class="fa-fw fa-solid fa-images"></i><span> 相册</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-address-card"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 其他</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/foodblacklist/"><i class="fa-fw fas fa-clipboard-list"></i><span> 食物黑名单</span></a></li><li><a class="site-page child" href="/update/"><i class="fa-fw fas fa-upload"></i><span> 更新日志</span></a></li></ul></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/img/default.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">寂静领域</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-hourglass-half"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/albums/"><i class="fa-fw fa-solid fa-images"></i><span> 相册</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-address-card"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 其他</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/foodblacklist/"><i class="fa-fw fas fa-clipboard-list"></i><span> 食物黑名单</span></a></li><li><a class="site-page child" href="/update/"><i class="fa-fw fas fa-upload"></i><span> 更新日志</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">缄默中等待的个人博客</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/jmzdd" target="_blank" title="Github主页"><i class="fa-brands fa-github"></i></a><a class="social-icon" href="mailto:2041418454@qq.com" target="_blank" title="邮箱"><i class="fa-regular fa-envelope"></i></a><a class="social-icon" href="https://www.zhihu.com/people/jian-mo-zhong-deng-dai" target="_blank" title="知乎"><i class="fab fa-zhihu"></i></a><a class="social-icon" href="https://space.bilibili.com/109396152" target="_blank" title="哔哩哔哩"><i class="fa-brands fa-bilibili"></i></a><a class="social-icon" href="https://music.163.com/#/user/home?id=1469345720" target="_blank" title="网易云音乐"><i class="fa-solid fa-compact-disc"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/2020/12/09/Hello%20world/" title="Hello world"><img class="post_bg" src= "" data-lazy-src="/img/Old-blog1.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hello world"></a></div><div class="recent-post-info"><a class="article-title" href="/2020/12/09/Hello%20world/" title="Hello world">Hello world</a><div class="article-meta-wrap"><span class="article-meta"><i class="fas fa-thumbtack sticky"></i><span class="sticky">置顶</span><span class="article-meta-separator">|</span></span><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-12-09T12:59:48.000Z" title="发表于 2020-12-09 20:59:48">2020-12-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%88%91%E7%9A%84%E6%97%A5%E8%AE%B0/">我的日记</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2020/12/09/Hello%20world/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2020/12/09/Hello%20world/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> &emsp;&emsp;上面那张图是我在高三的时候建立的博客，当时用的还是Gridea推送+Coding page代码托管，进行静态博客搭建。这是也我目前所能够了解到的最为简单快速的搭建方式。前阵子想尝试用Hexo重新建立一个静态博客，也算是给我的博客翻新了。结果一不小心将Coding上存放我博客文件的仓库删掉了。最后不得不将建立静态博客这一议程提前进行。
&emsp;&emsp;其实一开始是打算用Hexo+coding部署的，直到昨天我还在坚持这一想法。但由于部署过程频频报错，有时候甚至连错误信息都没有，查了很多资料都无解。最后实在是受不了了，才用Hexo+Github部署我的博客。这里对后面想要建立静态博客的朋友们提个建议——在短时间内，最好用Hexo+Github的方式来搭建自己的静态博客。
&emsp;&emsp;还在念初中的时候突发奇想，寻思着要建立一个网站，搭建一个论坛式的网络平台。苦于当时的我还没有本事从头开始码代码，但凭借着这一时的冲动，直接买了一本搭建网站的教程，打算从头开始学。当时我把我的想法告诉了几个好哥们。几个人都对我摇了摇头，一致认为我的想法难以实现。现在想 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="STM32学习笔记（2）"><img class="post_bg" src= "" data-lazy-src="/img/STM32.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="STM32学习笔记（2）"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="STM32学习笔记（2）">STM32学习笔记（2）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-04-12T15:26:24.000Z" title="发表于 2022-04-12 23:26:24">2022-04-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/STM32/">STM32</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 学习过程跟随洋桃电子——STM32入门100步


关于Cortex系统定时器（SysTick）&emsp;&emsp;在“亮灯仪式”之后，接下来就要尝试为LED小灯添加延时以实现亮灭的效果。
&emsp;&emsp;与传统51相比，事实上STM32的延时大多也采用C语言循环体的方式来进行延时，但是STM32同时也存在计时器进行计时，这一点和定时器中断有点类似。接下来我们就要开始学习一下传说中的“嘀嗒计时器”啦！
传说中的“嘀嗒计时器”&emsp;&emsp;如果你的STM32芯片有操作系统，那么“嘀嗒计时器”可用来切换系统。当然了，我们也可以用来延时，用法与传统51的定时器很类似。我们需要调用相应的函数来使用对应的寄存器，具体的使用在官方文档里有体现。
&emsp;&emsp;这里我们附上源码来说明：
/*****delay.h*****/#ifndef __DELAY_H#define __DELAY_H 			   #include &quot;sys.h&quot; void delay_s(u16 s);void delay_ms(u16 ms);void delay_us ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" title="HTML DOM闲谈"><img class="post_bg" src= "" data-lazy-src="/img/HTML_DOM.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="HTML DOM闲谈"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" title="HTML DOM闲谈">HTML DOM闲谈</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-04-12T11:49:19.000Z" title="发表于 2022-04-12 19:49:19">2022-04-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/HYML-DOM/">HYML DOM</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> &emsp;&emsp;这天网站老是访问不了，没想到换了DNS还是不行，上次碰到这么棘手的情况还是上次。几周前同学说起我的网站许久没有更新，细细想来我确实已经很久没有更新博客了。左思右想决定要更新一点什么东西，不然再这样下去就要被人发现我在摸鱼了！
&emsp;&emsp;前阵子为了研究怎么写油猴脚本，就拿了花园当例子。在看了资料后写了一小段，但由于时间的关系，就没有接着往下写了。其实就是因为懒，所以如果我一事无成，其实一点都不奇怪
// ==UserScript==// @name         IIrose Tool// @namespace    IIrose Tool// @version      0.1// @description  蔷薇花园拓展功能// @author       缄默中等待// @match        https://iirose.com// @match        http://r.iirose.com// @icon         https://iirose.com/images/system/ic_square.png// @gr ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="STM32学习笔记（1）"><img class="post_bg" src= "" data-lazy-src="/img/STM32.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="STM32学习笔记（1）"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="STM32学习笔记（1）">STM32学习笔记（1）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-03-02T02:02:31.000Z" title="发表于 2022-03-02 10:02:31">2022-03-02</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/STM32/">STM32</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 学习过程跟随洋桃电子——STM32入门100步


&emsp;&emsp;这一篇文章主要是补之前还没说到的一些知识，事实上GPIO的使用是很重要的。
关于GPIO的使用&emsp;&emsp;这里关于GPIO的组成和原理在这里就不多赘述免得我下次没东西写。不然写着写着就和教程没什么区别的，毕竟学东西还是要自己理解才行，等我整明白电路部分再做补充吧！
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" title="单片机学习笔记（12）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（12）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" title="单片机学习笔记（12）">单片机学习笔记（12）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-29T02:30:40.000Z" title="发表于 2021-09-29 10:30:40">2021-09-29</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 多位数码管的动态显示（下）单片机开发板例程代码详解</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" title="单片机学习笔记（11）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（11）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" title="单片机学习笔记（11）">单片机学习笔记（11）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-28T06:16:14.000Z" title="发表于 2021-09-28 14:16:14">2021-09-28</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 多位数码管的动态显示（上）单片机课程代码详解提示：撰文本文的目的是为了学习交流，仅供参考，不保证其正确性。


&emsp;&emsp;废话少说，上代码！
#include &lt;STC15.H&gt;#define u8 unsigned char   //将unsigned char重定义为u8，下面一行同理#define u16 unsigned int	#define PLed P2   //将单片机的P2口用PLed表示，下面两行同理#define PSeg P4#define PSel P6u8 code SegCode[]=&#123;0xc0,0xf9,0xa4,0xb0,0x99,0x92				  ,0x82,0xf8,0x90,0xbf,0xff,0x8c&#125;;				  //定义一个名为SegCode的数组，用来存放多位数码管的字形码u8 DisBuff[4]=&#123;10,10,10,10&#125;;  //该数组用来存放Sec处理后的数据void DelayNms(unsigned int i);  //声明子函数，下面两行同理void D ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8810%EF%BC%89/" title="单片机学习笔记（10）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（10）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8810%EF%BC%89/" title="单片机学习笔记（10）">单片机学习笔记（10）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-14T13:03:21.000Z" title="发表于 2021-09-14 21:03:21">2021-09-14</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8810%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8810%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 1602液晶显示（下）字符型液晶显示模块指令集&emsp;&emsp;上一篇文章中讲到关于初始化液晶屏部分时，出现了以下部分。
LcdWrCmd(0x38);LcdWrCmd(0x0C);LcdWrCmd(0x01);LcdWrCmd(0x06);
&emsp;&emsp;事实上这里的十六进制数并不是凭空产生的，根据资料里的指令集可以得到相应的指令码，根据需要利用指令码向液晶屏发送相关的命令。

Function set(功能设置)
&emsp;&emsp;需要说明的是，当DL=1时，使用的是8位数据总线DB7-DB0，即所有的8个IO口。同理，当DL=0时，使用的是4位数据总线，即DB7-DB4，DB3-DB0不用，用此方式传送数据，需要分两次进行。
&emsp;&emsp;DB1与DB0两个位是 * ，表示无论是0或是1都是可以的。
Display on/off control（显示开/关控制）
Clear display（清 显示）

&emsp;&emsp;上图的00、01、02等地址就是DDROM的地址。
&emsp;&emsp;地址计数器AC=0时为自动增一模式，这里指的 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%889%EF%BC%89/" title="单片机学习笔记（9）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（9）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%889%EF%BC%89/" title="单片机学习笔记（9）">单片机学习笔记（9）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-14T06:42:38.000Z" title="发表于 2021-09-14 14:42:38">2021-09-14</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%889%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/09/14/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%889%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 1602液晶显示（上）&emsp;&emsp;事实上利用单片机实现1602显示，首先要经过HD44870芯片（视具体情况）才能控制液晶屏。我们先从液晶屏的引脚说起：

时序&emsp;&emsp;对于单片机而言，机器只能识别0与1两种，所以为了表达更多的意思，就有了高低电平+时间的表达方式——时序。

注意：使用速率比较高的芯片（ARM 32）还是需要用延时函数的


写命令/数据程序// 写命令程序void LcdWrCmd(uchar cmd) //利用英语单词给变量名“赋义”&#123;	LcdBusy(); //判断液晶屏状态是否在忙	LcdRS = 0;	LcdRW = 0;	LcdDB = cmd; //数据发送至P2口（参考本篇文章第一张图中的原理图）	LcdEN = 1; //使能引脚先拉高再拉低，将命令写入	LcdEN = 0;&#125;

// 写数据程序void LcdWrDat(uchar cmd) //和“写命令程序”原理大同小异&#123;	LcdBusy();	LcdRS = 1; //引脚电平状态与时序图相对应	LcdRW = 0;	LcdDB =  ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2021/09/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%888%EF%BC%89/" title="单片机学习笔记（8）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（8）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%888%EF%BC%89/" title="单片机学习笔记（8）">单片机学习笔记（8）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-13T00:47:53.000Z" title="发表于 2021-09-13 08:47:53">2021-09-13</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/09/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%888%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/09/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%888%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> &emsp;&emsp;待填
</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/09/08/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%887%EF%BC%89/" title="单片机学习笔记（7）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（7）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/08/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%887%EF%BC%89/" title="单片机学习笔记（7）">单片机学习笔记（7）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-08T08:16:49.000Z" title="发表于 2021-09-08 16:16:49">2021-09-08</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/09/08/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%887%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/09/08/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%887%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 定时器和中断概念的基本认识（上）学习过程跟随up主@海创电子


&emsp;&emsp;经过一段时间的学习，终于走到了定时器中断的部分了！
&emsp;&emsp;接下来我们主要从两个实验入手：
&emsp;&emsp;实验一：LED小灯的闪烁&emsp;&emsp;实验二：按键中断法点亮LED
&emsp;&emsp;在实验开始之前，我们先来了解一些概念。
时钟周期&emsp;&emsp;时钟周期又叫做振荡周期(晶振周期)、节拍周期，定义为时钟晶振频率的倒数。时钟周期是计算机中最基本的、最小的时间单位。在一个时钟周期内，CPU仅完成一个最基本的动作。例如晶振为12M，则时钟周期为1/12us。又可以被定义为节拍。
机器周期&emsp;&emsp;在计算机中，为了便于管理，常把一条指令的执行过程划分为若干个阶段，每一阶段完成一项工作。例如，取指令、存储器读、存储器写等，这每一项工作称为一个基本操作。完成一个基本操作所需要的时间称为机器周期。一般情况下，一个机器周期由若干个S周期（状态周期）组成。比如，取值周期，取数周期。在80C51内部，机器周期一般包括于6个状态周期，12个时钟周 ...</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/#content-inner">2</a><a class="page-number" href="/page/3/#content-inner">3</a><a class="extend next" rel="next" href="/page/2/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="/img/hand.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">缄默中等待</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">21</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/jmzdd"><i class="fab fa-github"></i><span>Github 主页</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/jmzdd" target="_blank" title="Github主页"><i class="fa-brands fa-github"></i></a><a class="social-icon" href="mailto:2041418454@qq.com" target="_blank" title="邮箱"><i class="fa-regular fa-envelope"></i></a><a class="social-icon" href="https://www.zhihu.com/people/jian-mo-zhong-deng-dai" target="_blank" title="知乎"><i class="fab fa-zhihu"></i></a><a class="social-icon" href="https://space.bilibili.com/109396152" target="_blank" title="哔哩哔哩"><i class="fa-brands fa-bilibili"></i></a><a class="social-icon" href="https://music.163.com/#/user/home?id=1469345720" target="_blank" title="网易云音乐"><i class="fa-solid fa-compact-disc"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">博客装修中！</div></div><div class="card-widget card-music" id="user-music"><div class="item-headline"><i class="fas fa-headphones"></i><span>今日音乐</span></div><div class="item-content"><text>播放前建议音量调至5以内！</text> <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=236 height=90 style="display:flex" src="//music.163.com/outchain/player?type=2&id=1306923998&auto=0&height=66"></iframe></div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="STM32学习笔记（2）"><img src= "" data-lazy-src="/img/STM32.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="STM32学习笔记（2）"/></a><div class="content"><a class="title" href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="STM32学习笔记（2）">STM32学习笔记（2）</a><time datetime="2022-04-12T15:26:24.000Z" title="发表于 2022-04-12 23:26:24">2022-04-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" title="HTML DOM闲谈"><img src= "" data-lazy-src="/img/HTML_DOM.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="HTML DOM闲谈"/></a><div class="content"><a class="title" href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" title="HTML DOM闲谈">HTML DOM闲谈</a><time datetime="2022-04-12T11:49:19.000Z" title="发表于 2022-04-12 19:49:19">2022-04-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="STM32学习笔记（1）"><img src= "" data-lazy-src="/img/STM32.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="STM32学习笔记（1）"/></a><div class="content"><a class="title" href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="STM32学习笔记（1）">STM32学习笔记（1）</a><time datetime="2022-03-02T02:02:31.000Z" title="发表于 2022-03-02 10:02:31">2022-03-02</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" title="单片机学习笔记（12）"><img src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（12）"/></a><div class="content"><a class="title" href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" title="单片机学习笔记（12）">单片机学习笔记（12）</a><time datetime="2021-09-29T02:30:40.000Z" title="发表于 2021-09-29 10:30:40">2021-09-29</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" title="单片机学习笔记（11）"><img src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（11）"/></a><div class="content"><a class="title" href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" title="单片机学习笔记（11）">单片机学习笔记（11）</a><time datetime="2021-09-28T06:16:14.000Z" title="发表于 2021-09-28 14:16:14">2021-09-28</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/"><span class="card-category-list-name">51单片机</span><span class="card-category-list-count">12</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/C%E8%AF%AD%E8%A8%80/"><span class="card-category-list-name">C语言</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/HYML-DOM/"><span class="card-category-list-name">HYML DOM</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/STM32/"><span class="card-category-list-name">STM32</span><span class="card-category-list-count">2</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%88%91%E7%9A%84%E6%97%A5%E8%AE%B0/"><span class="card-category-list-name">我的日记</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%A8%A1%E6%8B%9F%E7%94%B5%E5%AD%90%E6%8A%80%E6%9C%AF/"><span class="card-category-list-name">模拟电子技术</span><span class="card-category-list-count">1</span></a></li>
            </ul></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/04/"><span class="card-archive-list-date">四月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/03/"><span class="card-archive-list-date">三月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/09/"><span class="card-archive-list-date">九月 2021</span><span class="card-archive-list-count">6</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/07/"><span class="card-archive-list-date">七月 2021</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/03/"><span class="card-archive-list-date">三月 2021</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/01/"><span class="card-archive-list-date">一月 2021</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/12/"><span class="card-archive-list-date">十二月 2020</span><span class="card-archive-list-count">4</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">21</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2020-03-09T14:56:00.000Z"></div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">15.7k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2022-04-21T14:37:19.173Z"></div></div></div></div></div></div></main><footer id="footer" style="background-image: url('/img/default.png')"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022 By 缄默中等待</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a><br>
<view style="display:flex; justify-content:center; align-items:center;">
<img src= "" data-lazy-src="https://icp.gov.moe/images/ico64.png" style="width: 20px;height:20px;flex:display;">
<a href="https://icp.gov.moe/?keyword=20220722" target="_blank">萌ICP备20220722号</a>
</view></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page@5/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"><script>(() => {
  function loadValine () {
    function initValine () {
      let initData = {
        el: '#vcomment',
        appId: 'etBss7YgMOAQaSG9Etu1DEDe-gzGzoHsz',
        appKey: 'rXdEJTgkAnTFjxALqSfJmwzx',
      }
      
      const valine = new Valine(initData)
    }

    if (typeof Valine === 'function') initValine() 
    else getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js').then(initValine)
  }

  window.pjax ? loadValine() : window.addEventListener('load', loadValine)
})()</script><script>function subtitleType () {
  if (true) { 
    window.typed = new Typed("#subtitle", {
      strings: ["不以言举人，不以人废言。","Good good study, day day up.","你和快乐一样值得我去奔赴。","You are as worthy of me as happiness.","想要成就一番事业，不仅要行动，还要敢于梦想；不仅要做计划，还要抱有信念。","To accomplish great things, we must not only act, but also dream; not only plan, but also believe."],
      startDelay: 300,
      typeSpeed: 150,
      loop: true,
      backSpeed: 50
    })
  } else {
    document.getElementById("subtitle").innerHTML = '不以言举人，不以人废言。'
  }
}

if (true) {
  if (typeof Typed === 'function') {
    subtitleType()
  } else {
    getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
  }
} else {
  subtitleType()
}</script></div><canvas class="fireworks" mobile="true"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/fireworks.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="true" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-nest.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = false;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script>window.$crisp = [];
window.CRISP_WEBSITE_ID = "cfcdaacf-e138-4b9b-a7e9-9dc112fcdc2c";
(function () {
  d = document;
  s = d.createElement("script");
  s.src = "https://client.crisp.chat/l.js";
  s.async = 1;
  d.getElementsByTagName("head")[0].appendChild(s);
})();
$crisp.push(["safe", true])

if (false) {
  $crisp.push(["do", "chat:hide"])
  $crisp.push(["on", "chat:closed", function() {
    $crisp.push(["do", "chat:hide"])
  }])
  var chatBtnFn = () => {
    var chatBtn = document.getElementById("chat_btn")
    chatBtn.addEventListener("click", function(){
      $crisp.push(["do", "chat:show"])
      $crisp.push(["do", "chat:open"])

    });
  }
  chatBtnFn()
} else {
  if (false) {
    function chatBtnHide () {
      $crisp.push(["do", "chat:hide"])
    }
    function chatBtnShow () {
      $crisp.push(["do", "chat:show"])
    }
  }
}</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>